#ifndef ADDSTU_H
#define ADDSTU_H

#include <QDialog>
#include <QSql>
#include <QSqlQueryModel>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QString>
#include <QSqlError>
#include <QSqlRecord>

#include "rootmenu.h"

namespace Ui {
class addStu;
}

class addStu : public QDialog
{
    Q_OBJECT

public:
    explicit addStu(QWidget *parent = nullptr);
    ~addStu();

    void clearAddStuInterface();

    RootMenu *menu;

    QSqlDatabase *dbconn;
    void setdbconn(QSqlDatabase *dbconn)
    {
        this->dbconn = dbconn;
    }

private slots:

    void on_addStu_ok_clicked();

    void on_addStu_quit_clicked();

    void on_addStu_academy_currentTextChanged(const QString &arg1); //关联下拉菜单

private:
    Ui::addStu *ui;
};

#endif // ADDSTU_H
